AI Chess Game Coding Workshop

This week, Youth4Youth held a workshop at ESF South Island School where the students learnt how to code their own game of chess which makes use of AI. The students were taught how to make a website, how to make a chessboard, how to make movable pieces and how to add AI to their games.

Youth4Youth enjoyed teaching the students about Hypertext Markup Language (HTML), Cascading Style Sheets (CSS) and JavaScript (JS) or TypeScript (TS). Students started by making a Graphical User Interface (GUI) using HTML where they learnt about element, class, ID and  . They used CodeSandbox, a platform for application developers, to add AI analysis to their games where the main idea was to use AI to make an evaluation of the current position. It was then decided that '+' in the evaluation means white has the advantage and '-' in the evaluation means black has the advantage. They coded a script that checked for stalemates and checkmates, before making the chessboard and coding the functionality for the chess pieces. This was a very unique session and the students were very happy to take home their own fully coded online chess games!

JOIN US

Empower and Inspire

Contact Us

Youth4Youth